home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 4 / developer source - volume 4.iso / dobbs / may95 / dutt1t1.gif < prev    next >
Graphics Interchange Format  |  1996-01-09  |  180KB  |  505x813  |  8-bit (124 colors)
Labels: text | font | paper | publication | number | document
OCR: Function Description char chr (ascii_ value); Converts the ASCII value into a string. string date _ time (); Returns the current date and time in the format "Mon Nov 21 11:31:54 1983" string downcase (string); Converts the passed string to lowercase. string editcase (string); Converts the passed string to edit case. Edit case is where the first character after a space is uppercase and the rest are lowercase. val exec_function (fname[,arg1 [,arg2 [ .... argn]!)); Executes the passed function name with the arguments. The number of arguments must be consistent with the function that is being called. This function returns the value that the function would have returned. Int fclose (file); Closes the passed file. file fopen (fname,mode); Opens the passed file in the mode: r for read, wfor write. int go (); Does a garbage collection. int getc (file); Returns the next character from the file. string getenv (envname); Returns the string associated with passed environment variable name bool keyboard_quit (); Stops the current processing. Returns NIL. list list functions (); Returns a list (vector) of function names. bool load bob (filename); Loads the Bob macro file. If the file is not available, then returns NIL. The file is not compiled into memory until the current function is processed. string newstring (size); Returns a blank string of the passed size. vector newvector (size); Returns a vector of the passed size. bool nothing (); This function does nothing. It could be used for disabling key translations. int print (vali [,val2 [ .... valn]]); Prints the passed values to stdout. int putc (file,char); Puts the passed character to the file. int sizeof (value); Returns the number of elements in a vector or the length of a string, or 1 for any other type of value. int str_to_nam (string); Retums the passed string as a number. int strchr (string,char); Retums the position of char in string. If returns < 0, then the string was not found. int strlen (string); Retums the length of the passed string. This is an alias for sizeof. int strstr (string 1, string2), Retums the position of string2 in string1. If < 0 is returned, then the string was not found. string substring (string, start-pos,flen]); Returns the substring starting at the position pos for the length len. If the length arg is not there, then returns the rest of the string. Pos of 0 is the beginning of the string. int system (command); Sends a command to the operating system. Returns the OS exit code, string typeof (value); Returns the type of the passed string, which is one of the following: NIL, CLASS, OBJECT, VECTOR, INTEGER, STRING, BYTECODE, CODE, DICTIONARY, VAR, FILE. string upcase (string); Converts the passed string to all uppercase. string val_to_string (value); Converts any value to the equivalent string and returns it. string version (); Returns the current version string of Bob. Table 1: Bob internal functions.